package com.snowball.demo.mvc.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.snowball.demo.mvc.entity.User;
import com.snowball.demo.mvc.mapper.UserMapper;
import com.snowball.demo.mvc.service.UserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import javafx.scene.control.Pagination;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author genezhao
 * @since 2018-07-23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public Page<User> selectUserList(int currentPage, int pageSize, Map param) {
        Page page = new Page<>(currentPage, pageSize);
        page.setRecords(baseMapper.selectUserList(page, param));
        return page;
    }
}
